package cn.roadtrip.utilmodule.util;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

public class AccessMVCThreadSet {
    /**
     * 访问时的header
     */
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class AccessControllerHeader {
        //访问端
        private String direct;
        //客户端码
        private String clientCode;
        //token
        private String utoken;
        //用户身份
        private String aut;
    }

    /**
     * 当前线程threadlocal
     */
    public static final ThreadLocal<AccessControllerHeader> CurrentThreadLocal = new ThreadLocal<>();
}
